package utilsfile

import (
	"github.com/akkuman/parseConfig"
)

//func GetFilePath(str, filename string) string {
//	config := parseConfig.New("src/www/utilsfile/config/" + filename)
//	path := config.Get(str).(string)
//	return path
//}

//func GetConfig(path string) (*parseConfig.Config) {
//	config := parseConfig.New(path)
//	return &config
//}

func GetConfig(str, filename string) *parseConfig.Config {
	config := parseConfig.New("./utilsfile/config/" + filename)
	path := config.Get(str).(string)
	getConfig := parseConfig.New(path)
	return &getConfig
}
